
#include <iostream>
using namespace std;
int main()
{
//    创建布尔类型
//    查看布尔类型所占的内存空间

bool a = true;//代表为真输出为1
cout<<a<<endl;
 a = false;
 cout<<a<<endl;


bool b = false;
cout<<b<<endl;

    cout<<"布尔类型所占的内存空间："<<sizeof (bool)<<endl;
    cout<<"hello C++"<< endl;
    system("pause");

    return 0;
}